<include file="public@header"/>
<style type="text/css">

.p_title {
    width: 515px;
    margin: 0 0 45px 60px;
    padding: 10px 0 10px 20px;
}
tr td input,tr td select{ max-width:80px;width:auto;}
	.content_nav .check_info{flex:1; display:flex;flex-direction: column;align-items: center;justify-content: center;}
.form-control{
		width:auto; display:inline-block;	
	}
</style>
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
        	<li><a href="{:url('orders/visua')}">{:lang('可视化墓区')}</a></li>
			<li><a href="{:url('orders/sale')}?order_id={$order_id}">格位信息</a></li>
            <li><a href="{:url('orders/applyer')}?order_id={$order_id}">申请人信息</a></li>
			<li><a href="{:url('orders/user')}?order_id={$order_id}">寄存信息</a></li>
			<li><a href="{:url('orders/signContract')}?order_id={$order_id}">合同签订</a></li>
			<li class="active"><a href="{:url('orders/orderPay')}?order_id={$order_id}">订单支付</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form" action="{:url('store/add_post')}" method="post" enctype="multipart/form-data">
        <fieldset>
        <!--改版画面-->
        <div class="div_title"><span>客户概览</span></div>
        <div class="control-group1-p div_content">
        	<div class="control-group1">
                <label class="control-label">客户姓名</label>
                <div class="controls">
                    <input type="text"  class="form-control" value="{$customer.buyer_name}" disabled>
                </div>
            </div>
            <div class="control-group1">
                <label class="control-label">持证类型</label>
                <div class="controls">
                    <input type="text" class="form-control" value="{$customer.cart_type}" disabled>
                </div>
            </div>
            <div class="control-group1">
                <label class="control-label">证件号码</label>
                <div class="controls">
                    <input type="text"  class="form-control" value="{$customer.cart_ID}" disabled>
                </div>
            </div>
            <div class="control-group1">
                <label class="control-label">联系电话</label>
                <div class="controls">
                    <input type="text"  class="form-control" value="{$customer.buyer_phone}" disabled>
                </div>
            </div>
            <div class="control-group1" style="width:50%;">
                <label class="control-label">联系地址</label>
                <div class="controls">
                    <input type="text"   class="form-control" value="{$customer.customer_address}" style="width:80%;" disabled>
                </div>
            </div>
             <div class="control-group1">
                <label class="control-label">合同编号</label>
                <div class="controls">
                    <input type="text" name="user_login" class="form-control" value="{$result.contract_sn}" disabled>
                </div>
            </div>
            <div class="control-group1">
                <label class="control-label">墓位编号</label>
                <div class="controls">
                    <input type="text" name="user_login" class="form-control" value="{$result.tomb_num}" disabled>
                </div>
            </div>
            <div class="control-group1">
                <label class="control-label">具体位置</label>
                <div class="controls">
                    <input type="text" name="user_login" class="form-control" value="{$result.tomb_region}" disabled>
                </div>
            </div>
            <div class="control-group1">
                <label class="control-label">当前状态</label>
                <div class="controls">
                    <input type="text" name="user_login" class="form-control" value="{$result.pro_status}" disabled>
                </div>
            </div>
            <div class="control-group1">
                <label class="control-label">格位规制</label>
                <div class="controls">
                    <input type="text" name="user_login" class="form-control" value="双穴" disabled>
                </div>
            </div>
            <!---tab页-->
            <php>$vo = 0; $page = '';</php>
            <div style="width:98%; margin:0 auto; clear:both;">
            	<div style="width:48%; float:left;margin-bottom:30px;">
                	<div class="div_title" ><span>交款记录</span></div>
                    <div class="control-group1-p div_content" style="border: 2px solid #0b7ebf;overflow:hidden; overflow-x:auto;">
                       <form action="{:url('Rock/order')}" method="post">
                        <table class="table table-hover table-bordered" style="max-width:120% !important;width:120% !important">
                            <thead>
                                <tr>
                                    <th>寄存单号</th>
                                    <th>类型</th>    
                                    <th>付/退款人姓名</th>   
                                    <th>付/退款人时间</th>                               
                                    <th>金额</th>
                                    <th>付/退款人方式</th>                        
                                    <th>经办人</th>
                                </tr>
                            </thead>
                            <tbody>
                                <foreach name="deposit" item="vo">
                                <tr>                   
                                    <td >{$vo.deposit_sn}</td>
                                    <td >{$vo.deposit_type}</td>
                                    <td >{$vo.real_name}</td>
                                    <td >{$vo.add_time|date='Y-m-d H:i:s'}</td>
                                    <td >{$vo.deposit_price}</td>
                                    <td >现金</td>
                                    <td >{:cmf_get_admin_name($vo.handle)}</td>
<!--                                    <td ><a href="{:url('Aftersale/edit',array('id'=>$vo['id']))}">备注</a>-->
<!--                                        |-->
<!--                                        <a href="{:url('Aftersale/edit',array('id'=>$vo['id']))}">补打</a>-->
<!--                                        |-->
<!--                                        <a href="{:url('Aftersale/edit',array('id'=>$vo['id']))}">附件</a></td>  -->
                                </tr>
                            </foreach>
                            </tbody>
                        </table>
                        <div class="pagination">{$page}</div>
                        </form>     
                    </div>
                    <div class="div_title" style="margin-top:20px;"><span>结算项目</span></div>
                    <div class="control-group1-p div_content" style="border: 2px solid #0b7ebf;overflow:hidden; overflow-x:auto; padding-top:0;">
                    	<div class="div_title" id="div_title" style="width:120%; background:#DEDDDD;box-shadow: 5px -5px 3px #CFCECE inset;"><span style="color:#222;">墓穴销售</span></div>
                        <div class="div_titleinfo" style="width:100%;">
                        	  <form action="{:url('Rock/order')}" method="post">
                            <table class="table table-hover table-bordered" style="max-width:120% !important;width:120% !important">
                                <thead>
                                    <tr>
                                        <th>墓位编号</th>
                                        <th>类型</th>    
                                        <th>流程</th>   
                                        <th>单位</th>                               
                                        <th>数量</th>
                                        <th>价格</th>                        
                                        <th>下单时间</th>
                                        <th>导购员</th>
                                        <th>业务员/代理商</th>
                                        <th>抵顶人</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <!--<td><input type="checkbox" class="js-check" name="order_id[]" data-yid='orderid' value="{$vo.order_id}" /></td>                   -->
                                        <td >{$result.tomb_num}</td>
                                        <td >{$result.tomb_type}</td>
                                        <td >购买/寄存</td>
                                        <td >套</td>
                                        <td >1</td>
                                        <td >69700</td>
                                        <td >暂时均不显示</td>
                                        <td >{:cmf_get_admin_name($result.shoppingguide)}</td>
                                        <td ></td>
                                        <td ></td>  
                                    </tr>
                                    
                                </tbody>
                            </table>
                            <div class="pagination">{$page}</div>
                            </form> 
                        </div>
                        <div class="div_title" id="div_title1" style="width:120%; background:#DEDDDD;box-shadow:5px -5px 3px #CFCECE inset;"><span style="color:#222;">商品销售</span></div>                        
                        <div class="div_titleinfo1 disappear">
                            <form action="{:url('Rock/order')}" method="post">
                            <table class="table table-hover table-bordered" style="max-width:120% !important;width:120% !important">
                                <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>项目名称</th>    
                                        <th>大类</th>   
                                        <th>类型</th>                               
                                        <th>单位</th>
                                        <th>单价</th>                        
                                        <th>数量</th>
                                        <th>优惠</th>
                                        <th>销售</th>
                                        <th>合计</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                <foreach name="goods_arr" item="vos">
                                    <tr>
                                        <td >{$key+1}</td>
                                        <td >{$vos.goods_name}</td>
                                        <td >{$vos.cate_name}</td>
                                        <td > </td>
                                        <td > </td>
                                        <td >{$vos.goods_price}</td>
                                        <td >{$vos.num}</td>
                                        <td >
                                        	<select>
                                            	<option>5%</option>
                                            	<option>10%</option>
                                                <option>15%</option>
                                            </select>
                                        </td>
                                        <td >{$vos.add_user}</td>
                                        <td >{$vos.total_price}</td>
                                        <td ><a href="{:url('Aftersale/edit',array('id'=>$vo['id']))}">赠送</a>
                                            |
                                            <a href="{:url('Aftersale/edit',array('id'=>$vo['id']))}">删除</a>
                                            |
                                            <a href="{:url('Aftersale/edit',array('id'=>$vo['id']))}">备注</a></td>
                                    </tr>
                                </foreach>
                                    
                                </tbody>
                            </table>
                            <div class="pagination">{$page}</div>
                            </form>
                        </div>
                    </div>
                </div>
            	<div style="width:48%; float:left; margin-left:2%;margin-bottom:30px;">
                    <div class="div_title"><span>费用信息</span></div>
                    <div class="control-group1-p div_content" style="border: 2px solid #0b7ebf;">
                    	<div class="control-group1" style="width:50%;">
                            <label class="control-label" style="">寄存时长</label>
                            <div class="controls" style=" ">
                                <input type="text" name="user_login" class="form-control" style="max-width:200px; width:auto;"  disabled>
                            </div>
                        </div>
                        <div class="control-group1" style="width:50%;">
                            <label class="control-label" style="">单年费用</label>
                            <div class="controls" style=" ">
                                <select style="max-width:200px; width:auto;min-width:167px;" class="form-control">
                                	<option>￥380</option>
                                </select>
                            </div>
                        </div>
                        <div class="control-group1" style="width:50%;">
                            <label class="control-label" style="">优惠方案</label>
                            <div class="controls" style=" ">
                                <select style="max-width:200px; width:auto;min-width:167px;" class="form-control">
                                	<option>￥1500/5年</option>
                                </select>
                            </div>
                        </div>
                        <div class="control-group1" style="width:50%;">
                            <label class="control-label" style="">免费寄存</label>
                            <div class="controls" style=" ">
                                <select style="max-width:200px; width:auto; min-width:167px;" class="form-control">
                                	<option>一年</option>
                                </select>
                            </div>
                        </div>
                        
                        <div class="control-group1" style="width:50%;">
                            <label class="control-label" style="">合计应收</label>
                            <div class="controls" style=" ">
                                <input type="hidden" class="closing_price" name="closing_price" value="{$result.closing_price}" disabled>
                                <input type="text"  class="form-control" style="max-width:200px; width:auto;" value="￥{$result.closing_price}" disabled>
                            </div>
                        </div>
                         <div class="control-group1" style="width:50%;">
                            <label class="control-label" style="">付款人</label>
                            <div class="controls" style=" ">
                                <input type="text" name="user_login" class="form-control" style="max-width:200px; width:auto;" value="">
                            </div>
                        </div>
                        <div style="float:left; width:80%; margin-left:10%;border-bottom:1px dashed;margin-bottom:20px;"></div>
                        <div class="control-group1" style="width:50%;">
                            <label class="control-label" style="">商品总计</label>
                            <div class="controls" style=" ">
                                <input type="text" name="user_login" class="form-control" style="max-width:200px; width:auto;" value="￥{$goods_total_price}" disabled>
                            </div>
                        </div>
                        <div class="control-group1" style="width:50%;">
                            <label class="control-label" style="">付款方式</label>
                            <div class="controls" style=" ">
                                <select name="cate" style="max-width:200px; width:auto;min-width:167px;" class="form-control">
                                    <option value="0">现金</option>
                                    <option value="0">转账</option>
                                    <option value="0">电汇</option>
                                    <option value="0">微信</option>
                                    <option value="0">支付宝</option>
                                    <option value="0">其他</option>
                                </select>
                            </div>
                        </div>
                         <div style="float:left; width:80%; margin-left:10%;border-bottom:1px dashed; margin-bottom:20px;"></div>
                        <div class="control-group1" style="width:100%;">
                            <label class="control-label" style="">收银备注</label>
                            <div class="controls" style=" ">
                                <textarea rows="3" name="user_login" class="form-control" style="width:85%"></textarea>
                            </div>
                        </div>
                        <div class="control-group1" style="width:50%;">
                            <label class="control-label" style="">收款时间</label>
                            <div class="controls" style=" ">
                                <input type="text" name="user_login" class="form-control" style="max-width:200px; width:auto;" value="" disabled>
                            </div>
                        </div>
                        <div class="control-group1" style="width:50%;">
                            <label class="control-label" style="">收款人</label>
                            <div class="controls" style=" ">
                                <input type="text" name="user_login" class="form-control" style="max-width:200px; width:auto;" value="" disabled>
                            </div>
                        </div>
                        <div class="form-actions" style="clear:both;">
<!--                          <div class="btn btn-primary" id="check-btn">退定金</div></if>-->
<!--                          <div class="btn btn-primary" id="check-btn">打印结算单</div>-->
<!--                          <div class="btn btn-primary" id="check-btn">保存</div>-->
<!--                          <div class="btn btn-primary" id="check-btn">结账</div>-->
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </fieldset>
        </form>
    </div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
	<script type="text/javascript">
	 // 提交订单
	$("#check-btn").click(function(){
		$.post($("form").attr('action'), $("form").serialize(), function(result){
			if(result.state == 'success'){
				alert("保存成功！");
				$('#js-dialog-close').click();
			} else {
				alert(result.info);
			}
		}, 'json');
	});
	$("#div_title").click(function(){
		if($(".div_titleinfo").is(":hidden")){
			$(".div_titleinfo").show();
		}else{
			$(".div_titleinfo").hide();
		}		
	})
	$("#div_title1").click(function(){
		if($(".div_titleinfo1").is(":hidden")){
			//
			$(".div_titleinfo1").show();	
		}else{
			$(".div_titleinfo1").hide();
			//$(".div_titleinfo").show();
		}
	})
    </script>
</body>
</html>